<!DOCTYPE html>
<html xmlns:v-bind="http://www.w3.org/1999/xhtml">

<head>
    <title>appBanner管理</title>
    <meta charset="UTF-8"/>
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport"/>
    <link rel="stylesheet" href="../../public/css/bootstrap.min.css">
    <link rel="stylesheet" href="../../public/css/font-awesome.min.css">
    <link rel="stylesheet" href="../../public/plugins/jqgrid/ui.jqgrid-bootstrap.css">
    <link rel="stylesheet" href="../../public/plugins/ztree/css/metroStyle/metroStyle.css">
    <link rel="stylesheet" href="../../public/css/main.css">
    <script src="../../public/libs/jquery.min.js"></script>
    <script src="../../public/plugins/layer/layer.js"></script>
    <script src="../../public/plugins/upload/ajaxfileupload.js"></script>
    <script src="../../public/libs/bootstrap.min.js"></script>
    <script src="../../public/libs/vue.min.js"></script>
    <script src="../../public/plugins/jqgrid/grid.locale-cn.js"></script>
    <script src="../../public/plugins/jqgrid/jquery.jqGrid.min.js"></script>
    <script src="../../public/plugins/ztree/jquery.ztree.all.min.js"></script>
    <script src="../../public/js/common.js"></script>
</head>
<body>

<div id="rrapp" v-cloak>
    <!--列表-->
    <div v-show="showList">
        <div class="grid-btn">
            <!--<div class="form-group col-sm-2" style="width: 160px;">-->
                <!--<select id="select_type" class="form-control">-->
                    <!--<option value="1">全部</option>-->
                    <!--<option v-for="(item,index) in apps" v-bind:value="item.appId">{{item.appName}}</option>-->
                <!--</select>-->
            <!--</div>-->
            <a v-if="hasPermission('platform:oem:sharepic:save')" class="btn btn-info" @click="add">添加</a>
            <a v-if="hasPermission('platform:oem:sharepic:delete')" class="btn btn-info" @click="del">删除</a>
        </div>
        <table id="jqGrid"></table>
        <div id="jqGridPager"></div>
    </div>

    <!--添加、修改-->
    <div v-show="showAdd" class="panel panel-default">

        <div class="panel-heading">{{title}}</div>
        <form class="form-horizontal">
            <div class="form-group">
                <div class="col-sm-2 control-label">名称（可空）</div>
                <div class="col-sm-10">
                    <input type="text" class="form-control" v-model="sharepic.shareName" placeholder="标题(非必填)"/>
                </div>
            </div>
            <div class="form-group">
                <div class="col-sm-2 control-label">描述（可空）</div>
                <div class="col-sm-10">
                    <input type="text" class="form-control" v-model="sharepic.shareDesc" placeholder="描述(非必填)"/>
                </div>
            </div>
            <div class="form-group">
                <div class="col-sm-2 control-label">分享图片</div>
                <div class="col-sm-10">
                    <input type="file" style="display: none;" ref="inputFile" accept="image/*" name="shareImgFile" id="shareImgFile"
                           class="form-control" placeholder="file"/>
                    <img style="border: 1px solid silver;" id="photoImage" v-bind:src="sharepic.fileUrl" width="200"
                         height="300" alt="点击上传"/>
                </div>
            </div>
            <div class="form-group">
                <div class="col-sm-2 control-label"></div>
                <input type="button" class="btn btn-primary" @click="saveOrUpdate" value="确定"/>
                &nbsp;&nbsp;<input type="button" class="btn btn-warning" @click="reload" value="返回"/>
            </div>
        </form>

    </div>

</div>
<script src="../../public/js/sys/sharePic.js"></script>
</body>
</html>